package cn.wolfcode.wolf2w.business.service.impl;


import cn.wolfcode.wolf2w.business.api.domain.AnswerContent;
import cn.wolfcode.wolf2w.business.mapper.AnswerContentMapper;
import cn.wolfcode.wolf2w.business.query.AnswerContentQuery;
import cn.wolfcode.wolf2w.business.service.IAnswerContentService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 答案内容Service业务层处理
 * 
 * @author zhuyaohua
 * @date 2024-10-01
 */
@Service
@Transactional
public class AnswerContentServiceImpl extends ServiceImpl<AnswerContentMapper, AnswerContent> implements IAnswerContentService {

    @Override
    public IPage<AnswerContent> queryPage(AnswerContentQuery qo) {
        IPage<AnswerContent> page = new Page<>(qo.getCurrentPage(), qo.getPageSize());
        return lambdaQuery()
                .page(page);
    }
}
